import request from '@/utils/request'

export function fetchUserData() {
    return request.get('https://api.github.com/users/woai3c')
}
export function testGet(url, params) {
    return request({
        url,
        method: 'GET',
        params,
    })
}
export function testPost(url, data) {
    return request({
        url,
        method: 'POST',
        data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
    })
}
